package com.qiwenshare.stock.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@Data
@Entity
@Table(name = "stock_gnzt")
@TableName("stock_gnzt")
public class ZtStockBean {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    private Long stockId;
    @Column
    private String stockNum;
    @Column
    private String stockName;
    
    @Column
    private String zhangfu;

    @Column
    private String huanshoulv;
    
    @Transient
    private String ztPrice;
    @Column
    private String lianban; 
    @Column
    private String jitianjiban;
    @Transient
    private String ztReason;
    @Column
    private String redianfenxi;
    @Column
    private String shoufeng;
    @Column
    private String fengzhu;
    @Column
    private String fengdanbi;
    @Column
    private String zongshizhi;
    @Column
    private String kaiban;
    @Column
    private String zhangtingfenxi;
    @Transient
    private String recordDate;
    @Column
    private String liutongzhi;
    @Transient
    private String dongcaikline;
    
    @Transient
    private String sinaMin;
    @Transient
    private String sinaDaily;
    @Transient
    private String sinaWeekly;
    @Transient
    private String sinaMonthly;
    
    @Transient
    private String oneTwoThreeIndustry;
    @Transient
    private String oneIndustry;
    
    @Transient
    private String oneTwoIndustry;
    @Transient
    private String subIndustry;
    
    


    @Override
    public boolean equals(Object obj) {
        // 两个对象是同一个时，直接return true
        if (this == obj) {
            return true;
        }
        if (obj instanceof ZtStockBean) {
            // 比较对象也是StockBean对象时，判断name和age是否都相同
            ZtStockBean p = (ZtStockBean) obj;
            return stockNum.equals(p.stockNum) && stockName.equals(p.stockName);
        }
        return false;
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }


    
}
